home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / Notification.h < prev    next >
Text File  |  1991-04-17  |  1KB  |  63 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 9:33 PM
  4.     Notification.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1989-90
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __NOTIFICATION__
  15. #define __NOTIFICATION__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25.  
  26. enum {
  27.  
  28.     nmType = 8
  29. };
  30.  
  31. typedef pascal void (*NMProcPtr)(struct NMRec *);
  32.  
  33. struct NMRec {
  34.     QElemPtr qLink;     /*next queue entry*/
  35.     short qType;        /*queue type -- ORD(nmType) = 8*/
  36.     short nmFlags;      /*reserved*/
  37.     long nmPrivate;     /*reserved*/
  38.     short nmReserved;   /*reserved*/
  39.     short nmMark;       /*item to mark in Apple menu*/
  40.     Handle nmIcon;      /*handle to small icon*/
  41.     Handle nmSound;     /*handle to sound record*/
  42.     StringPtr nmStr;    /*string to appear in alert*/
  43.     NMProcPtr nmResp;   /*pointer to response routine*/
  44.     long nmRefCon;      /*for application use*/
  45. };
  46.  
  47. typedef struct NMRec NMRec;
  48. typedef NMRec *NMRecPtr;
  49.  
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54. pascal OSErr NMInstall(NMRecPtr nmReqPtr)
  55.     = {0x205F,0xA05E,0x3E80}; 
  56. pascal OSErr NMRemove(NMRecPtr nmReqPtr)
  57.     = {0x205F,0xA05F,0x3E80}; 
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61.  
  62. #endif
  63.